

***********************
** Study 2: Table S2.11
***********************



** 2017
*******

* Open data
use "LondonBridgeAttack2017.dta", replace

* Full sample
tab region
tab gender
tab agecat
tab edu
tab vote2015
tab refvote2016

* 1d
tab region if statadate == td(02jun2017) | statadate == td(04jun2017)
tab gender if statadate == td(02jun2017) | statadate == td(04jun2017)
tab agecat if statadate == td(02jun2017) | statadate == td(04jun2017)
tab edu if statadate == td(02jun2017) | statadate == td(04jun2017)
tab vote2015 if statadate == td(02jun2017) | statadate == td(04jun2017)
tab refvote2016 if statadate == td(02jun2017) | statadate == td(04jun2017)

* 2d
tab region if inrange(statadate,td(01jun2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(05jun2017))
tab gender if inrange(statadate,td(01jun2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(05jun2017))
tab agecat if inrange(statadate,td(01jun2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(05jun2017))
tab edu if inrange(statadate,td(01jun2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(05jun2017))
tab vote2015 if inrange(statadate,td(01jun2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(05jun2017))
tab refvote2016 if inrange(statadate,td(01jun2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(05jun2017))

* 3d
tab region if inrange(statadate,td(31may2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(06jun2017))
tab gender if inrange(statadate,td(31may2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(06jun2017))
tab agecat if inrange(statadate,td(31may2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(06jun2017))
tab edu if inrange(statadate,td(31may2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(06jun2017))
tab vote2015 if inrange(statadate,td(31may2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(06jun2017))
tab refvote2016 if inrange(statadate,td(31may2017),td(02jun2017)) | inrange(statadate,td(04jun2017),td(06jun2017))





** 2019
*******

* Open data
use "LondonBridgeAttack2019.dta", replace

* Full sample
tab region
tab gender
tab agecat
tab edu
tab vote2017
tab refvote2016

* 1d
tab region if statadate == td(28nov2019) | statadate == td(30nov2019)
tab gender if statadate == td(28nov2019) | statadate == td(30nov2019)
tab agecat if statadate == td(28nov2019) | statadate == td(30nov2019)
tab edu if statadate == td(28nov2019) | statadate == td(30nov2019)
tab vote2017 if statadate == td(28nov2019) | statadate == td(30nov2019)
tab refvote2016 if statadate == td(28nov2019) | statadate == td(30nov2019)

* 2d
tab region if inrange(statadate,td(27nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(1dec2019))
tab gender if inrange(statadate,td(27nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(1dec2019))
tab agecat if inrange(statadate,td(27nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(1dec2019))
tab edu if inrange(statadate,td(27nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(1dec2019))
tab vote2017 if inrange(statadate,td(27nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(1dec2019))
tab refvote2016 if inrange(statadate,td(27nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(1dec2019))

* 3d
tab region if inrange(statadate,td(26nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(2dec2019))
tab gender if inrange(statadate,td(26nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(2dec2019))
tab agecat if inrange(statadate,td(26nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(2dec2019))
tab edu if inrange(statadate,td(26nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(2dec2019))
tab vote2017 if inrange(statadate,td(26nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(2dec2019))
tab refvote2016 if inrange(statadate,td(26nov2019),td(28nov2019)) | inrange(statadate,td(30nov2019),td(2dec2019))



